package com.tikou.ui.view;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.tikou.androidadvanceproject.R;
import com.tikou.ui.view.fallingview.FallObject;
import com.tikou.ui.view.fallingview.FallingView;
import com.tikou.ui.view.fallingview.ObjectBuilder;

import org.apache.commons.lang3.StringUtils;

/**
 * Created by Tikou on 2017/12/25 10:30.
 * 作者：wangwei
 * 邮箱：ww@winning.com.cn
 * 说明：下雪
 * 参考：
 */

public class FallingViewActivity extends AppCompatActivity{
    private FallingView fallingView;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_falling);
        fallingView=findViewById(R.id.fallingview);
        Bitmap bitmap = Bitmap.createBitmap(50,50, Bitmap.Config.RGB_565);
        Canvas canvas = new Canvas(bitmap);
        Paint paint = new Paint();
        paint.setColor(Color.WHITE);
        paint.setStyle(Paint.Style.FILL);
        canvas.drawCircle(25,25,25,paint);
        ObjectBuilder builder = new ObjectBuilder(bitmap);
        // FallObject fallObject = builder.setS
    }
}
